package com.zengqingfa.shardingjdbc.demo.sharding;

import org.apache.shardingsphere.api.sharding.hint.HintShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.hint.HintShardingValue;

import java.util.ArrayList;
import java.util.Collection;

public final class BillDatabaseHintShardingAlgorithm implements HintShardingAlgorithm<String> {
    
    @Override
    public Collection<String> doSharding(final Collection<String> databaseNames, final HintShardingValue<String> shardingValue) {
        Collection<String> result = new ArrayList<>();
        for (String each : databaseNames) {
        	//System.out.println(" avail database name : "+ each);
            for (String msv : shardingValue.getValues()) {
            	//System.out.println("shardingValue: "+msv);
            }
        }
        return result;
    }
}